home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Stoned Mouse 1.0 Source / Stoned mouse ƒ / stoned mouse VBL.c next >
Encoding:
C/C++ Source or Header  |  1993-11-13  |  1.3 KB  |  50 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        stoned mouse VBL.c
  4.  
  5. Purpose:    This module handles setting low-level globals that make
  6.             the mouse's movement more jerky.
  7.             
  8.  
  9. Stoned Mouse -=- a slightly distracted mouse
  10. Copyright (C) 1993 Mark Pilgrim
  11.  
  12. This program is free software; you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation; either version 2 of the License, or
  15. (at your option) any later version.
  16.  
  17. This program is distributed in the hope that it will be useful,
  18. but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  20. GNU General Public License for more details.
  21.  
  22. You should have received a copy of the GNU General Public License
  23. along with this program in a file named "GNU General Public License".
  24. If not, write to the Free Software Foundation, 675 Mass Ave,
  25. Cambridge, MA 02139, USA.
  26.  
  27. \**********************************************************************/
  28.  
  29. #include "Retrace.h"
  30.  
  31. extern Boolean    CrsrNew : 0x8CE;
  32. extern Point    mTemp : 0x828;
  33. extern Point    RawMouse : 0x82C;
  34.  
  35. void main(void);
  36.  
  37. void main(void)
  38. {
  39.     VBLTask*        myVBL;
  40.     
  41.     asm
  42.     {
  43.         move.l d0, myVBL
  44.     }
  45.     mTemp.h=RawMouse.h;
  46.     mTemp.v=RawMouse.v;
  47.     CrsrNew = TRUE;
  48.     myVBL->vblCount = 1;
  49. }
  50.